#ifndef TVOERADIO_H
#define TVOERADIO_H

#include "mainwindow.h"

#ifdef Q_WS_MAC
    #include <Carbon/Carbon.h>
#endif

#include <QCoreApplication>
#include <QApplication>
#include <QNetworkProxy>
#include <QSettings>

class TvoeRadio : public QApplication {
    Q_OBJECT
public:
    TvoeRadio(int &, char **);
    ~TvoeRadio();
    MainWindow m_mainWindow;
    void updateProxyConfig();
#ifdef Q_WS_MAC
    AEEventHandlerUPP m_appleEventProcessorUPP;
#endif
#ifdef Q_WS_X11
    bool x11EventFilter(XEvent *);
#endif
#ifdef Q_WS_WIN
    bool winEventFilter(MSG *, long *);
#endif


private:
    void constructOp();
    void destructOp();


signals:
    void reopenApplication();
};

#endif // TVOERADIO_H
